import * as _ from 'lodash'

class Greeter {
  greeting: string;
  constructor(message: string) {
    this.greeting = message
  }
  greet() {
    // return 'hello'  + this.greeting;
    return _.join([12, this.greeting], '*******')
  }
}

let greeter = new Greeter("world");

let button = document.createElement("button");
button.textContent = "say hello";
button.onclick = function () {
  alert(greeter.greet());
}

document.body.appendChild(button)